package com.wx.chat.model;

/**
 * @Author:LLH
 * @Date:2020/8/22
 * @Description:
 */
public class ChatMessage {

    private MessageType type;//消息类型
    private String content;//消息内容
    private String sender;//发送者

    public enum MessageType {
        //消息
        CHAT,
        //加入
        JOIN,
        //离开
        LEAVE
    }

    public MessageType getType () {
        return type;
    }

    public void setType ( MessageType type ) {
        this.type = type;
    }

    public String getContent () {
        return content;
    }

    public void setContent ( String content ) {
        this.content = content;
    }

    public String getSender () {
        return sender;
    }

    public void setSender ( String sender ) {
        this.sender = sender;
    }
}
